From: Adel Gadllah Date: Fri, 6 Mar 2015 12:47:47 +0000 (+0100) Subject: legacyTray: Allow extensions to hijack the tray-icon-added/removed signals X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~1553 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5f6aba7f4b80f16a2a9f75797e450df53a7492df;p=gnome-shell.git legacyTray: Allow extensions to hijack the tray-icon-added/removed signals --- diff --git a/js/ui/legacyTray.js b/js/ui/legacyTray.js index a167ea234..f3d8613a0 100644 --- a/js/ui/legacyTray.js +++ b/js/ui/legacyTray.js @@ -85,8 +85,8 @@ const LegacyTray = new Lang.Class({ Main.layoutManager.trackChrome(this._slider, { affectsInputRegion: true }); this._trayManager = new Shell.TrayManager(); - this._trayManager.connect('tray-icon-added', Lang.bind(this, this._onTrayIconAdded)); - this._trayManager.connect('tray-icon-removed', Lang.bind(this, this._onTrayIconRemoved)); + this._trayIconAddedId = this._trayManager.connect('tray-icon-added', Lang.bind(this, this._onTrayIconAdded)); + this._trayIconRemovedId = this._trayManager.connect('tray-icon-removed', Lang.bind(this, this._onTrayIconRemoved)); this._trayManager.manage_screen(global.screen, this.actor); Main.overview.connect('showing', Lang.bind(this,